package com.aijk.demo;

import com.aijk.mapper.SysPushRecordMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>  </p>
 * User: chendw
 * Date: 2017/3/10 12:48
 */
@Service
public class InitService {
    
    @Autowired
    private SysPushRecordMapper pushRecordMapper;
    
    //@PostConstruct
    public void load(){
        PageHelper.startPage(1,10);
        
        List list = pushRecordMapper.selectByExample(null);
        System.out.println("测试数据库连接========" + list.size());
        
    }
}
